ModifyDiskAttribute
Description
the call ModifyDiskAttribute modify the name, description, release with instance and other attributes of a block store.
Request Method
POST
Request Path
/apsara/route/Ecs/ModifyDiskAttribute
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Description | BODY | string | No | This is a description example. | disk description. 2 to 256 English or Chinese characters in length and cannot start with http:// or https. |
DiskIds.N | BODY | repeatlist | No | d-bp198f7xn673w2rw**** | multiple disk IDs of the details to be modified. The value range of n is 0~100. description DiskId and DiskIds.N two parameters cannot be called at the same time, please choose a value according to your needs. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
DeleteWithInstance | BODY | boolean | No | false | whether the disk is released with the instance. Default value: None, None means that the current value will not be changed. /p> p data-tag = "p" class = "p"> an error will be reported when the parameter DeleteWithInstance is set to false in the following two cases. when the type (category) of the disk is the site (ephemeral). when the type (category) of the disk is a common cloud disk (cloud) and cannot be uninstalled (Portable = false). |
DeleteAutoSnapshot | BODY | boolean | No | false | when deleting a disk, whether to delete its automatic snapshot at the same time. Default value: None, None means that the current value will not be changed. |
EnableAutoSnapshot | BODY | boolean | No | true | if you have created an automatic snapshot policy, whether it is applied to the disk. Default value: none, none means that the current value will not be changed. |
DiskName | BODY | string | No | test-DiskName | disk name. The length is 2~128 English or Chinese characters. It must start with a letter or Chinese, and cannot start with http:// or https. It can contain numbers, colons (:), underscores (_), or hyphens (-). |
version | BODY | string | No | 2016-01-01 | version of api |
DiskId | BODY | string | No | d-bp198f7xn673w2rw**** | the disk ID of the details to be modified. description DiskId and DiskIds.N two parameters cannot be called at the same time, please choose a value according to your needs. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}